package neo4j.entity;

import deepr.anno.*;
import lombok.Data;

import java.util.List;

@Schema(name = "PROJECT", type = SchemaType.NEO4J)
@Data
public class Project {
  @Property(primaryKey = true)
  private String id;
  @Property
  private String name;

  @Property(schema = User.class, type = Type.LIST, forProperty = "access")
  private List<User> user;

  @RelationProperty(schema = Access.class, forProperty = "user", point = Type.IN)
  private Access access;

}
